<?php if(!defined('WANYA_ROOT')) {exit('error!');}?>
<div class=containertitle><b><?php echo($pwd);?></b>
	<?php if(isset($_GET['active_add'])):?><span class="actived">用户合并成功。</span><?php endif;?>
</div>
<div class=line></div>
	<form action="user_merge.php" name="userMerge" id="userMerge" method="post">
	<table align="center">

		<tr>
			<td>
				学　　　生：　　　
			</td>
			<td>
				<INPUT type ="radio" name ="name" value ="" id="student_name2" checked>
				<INPUT type="text" readonly="readonly" name="student_name" id="student_name">　
				<INPUT type="button" value="选择"  onclick="openSelectWin('student','student_id','student_name');" class="button">
				<INPUT type="hidden" name="student_id" id="student_id" >
				<INPUT type ="radio" name ="tel" value ="" id="student_id_tel" checked>
				<INPUT type ="text" name ="telShow" value ="" id="student_id_tel2" readonly="readonly">
			</td>
		</tr>
		<tr>
			<td>
	　　　
			</td>
			<td>
				 　
			</td>
		</tr>
		<tr>
			<td>
				用　　　户：　　
			</td>
			<td>
				<INPUT type ="radio" name ="name" value ="" id="user_name2" >
				<INPUT type="text" name="user_name" id="user_name" readonly="readonly">　
				<INPUT type="button" value="选择" onclick="openSelectWin('user','wx_openid','user_name');" class="button">
				<INPUT type="hidden" name="wx_openid" id="wx_openid" >
				<INPUT type ="radio" name ="tel" value ="" id="wx_openid_tel" >
				<INPUT type ="text" name ="telShow" value ="" id="wx_openid_tel2" readonly="readonly">
			</td>
		</tr>
		<tr>
			<td>
				　　　
			</td>
			<td>
				<input type="hidden" name="action" id="action" value="commit">
			</td>
		</tr>
		<tr>
			<td colspan="2" align="center">
				<input type="button" name="cancel" value="取消" onclick="formCancel()" class="button">	　　　
				<input type="button" name="confirm" value="确认" onclick="formCheck()" class="button">　　
			</td>
		</tr>
	</table>
	</form>
<script type="text/javascript">
	setTimeout(hideActived,2600);
	function formCheck()
	{
		if($("#wx_openid").val()=="")
		{
			alert("请选择用户");
			return;
		}

		if($("#student_id").val()=="")
		{
			alert("请选择学生");
			return;
		}
		$("#userMerge").submit();
	}
	function formCancel()
	{
		$("#student_id").val("");
		$("#student_name").val("");
		$("#wx_openid").val("");
		$("#user_name").val("");
	}
</script>